﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FrmJoinExamRubric.aspx.cs" Inherits="ExamV5.WorkExam.FrmJoinExamRubric" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Language" content="zh-cn" />
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	
    <link href="../Image/STYLE.CSS" rel="stylesheet" type="text/css" />
	<script language="JavaScript" charset="gb2312" src="../Image/calendar.js"></script>
    <style>.outborder {
	BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #99ccff 1px solid; BORDER-LEFT: #333333 1px solid; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: #336699
}
.inputborder {
	BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; COLOR: #00ff00; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #333333; TEXT-ALIGN: center
}
		table 
		{
		    FONT-FAMILY: Arial; FONT-SIZE: 16px; LINE-HEIGHT: 16pt;
		}
		td {FONT-FAMILY: Arial; FONT-SIZE: 16px; LINE-HEIGHT: 16pt}
		</style>
    <script type="text/javascript" language="javascript">
        window.onbeforeunload = function () {
           
                if (document.body.offsetWidth - 50 < event.clientX && event.clientY < 0)
                    return "警告：关闭本窗口将自动以【零分】计算。\n\n请单击【交卷】按钮离开！"
           
        }

        document.onselectstart = function () {
            if (event.button != 1) {
                return false;
            }
        }

        document.onkeydown = function () {
            if (event.keyCode == 8) {
                if (event.srcElement.tagName.toLowerCase() != "input"
           && event.srcElement.tagName.toLowerCase() != "textarea")
                    event.returnValue = false;
            }
            if ((window.event.altKey) &&
      ((window.event.keyCode == 37) ||   //屏蔽 Alt+ 方向键 ←
       (window.event.keyCode == 39))) {  //屏蔽 Alt+ 方向键 →
                alert("不准你使用ALT+方向键前进或后退网页！");
                event.returnValue = false;
            }
            if ((event.keyCode == 116) ||                 //屏蔽 F5 刷新键
      (event.keyCode == 112) ||                 //屏蔽 F1 刷新键
      (event.keyCode == 27) ||
      (event.ctrlKey && event.keyCode == 82)) { //Ctrl + R
                event.keyCode = 0;
                event.returnValue = false;
            }
            if ((event.ctrlKey) && (event.keyCode == 78))   //屏蔽 Ctrl+N
                event.returnValue = false;
            if ((event.shiftKey) && (event.keyCode == 121)) //屏蔽 shift+F10
                event.returnValue = false;
            if (window.event.srcElement.tagName == "A" && window.event.shiftKey)
                window.event.returnValue = false;  //屏蔽 shift 加鼠标左键新开一网页
            if ((window.event.altKey) && (window.event.keyCode == 115)) { //屏蔽Alt+F4
                window.showModelessDialog("about:blank", "", "dialogWidth:1px;dialogheight:1px");
                return false;
            }
            if (window.event.keyCode == 18 || window.event.keyCode == 91 || window.event.keyCode == 92)   //屏蔽非法键
            {
                window.event.keyCode = 0;
                window.event.returnValue = false;
            }
        }
		</script>
</head>
<body style="OVERFLOW: auto; WORD-BREAK: break-all; WORD-WRAP: break-word" >
    <form id="Form1" runat="server">
     <asp:ScriptManager ID="SM" runat="server">
                        </asp:ScriptManager>
                        <asp:UpdatePanel ID="UPPart" runat="server">
                           <ContentTemplate>
     <table id="table2" borderColor="#cccccc" cellSpacing="0" borderColorDark="#ffffff" cellPadding="0"
							width="100%" align="center" border="1" class="tableStyle">
     <tr>
     <td width="150"  bgcolor="#f5fcfe" valign="top">
     <font color="red"><br />&nbsp;单击试题前<img src="../image/MenuICO/Menu36.gif" border="0">标记此题;再单击即取消标记此题</font><br>
							<br><font color=red><b><asp:label id="labCheckRubricInfo" runat="server"></asp:label></b></font><br>
         &nbsp;未答:<font color="blue">蓝色</font><br />
         &nbsp;已答:<font color="green">绿色</font><br />
        &nbsp;标记:<font color="red">红色</font><br />
							<asp:label id="labRubricListAID" runat="server"></asp:label>
     </td>
     <td valign="top">
         <asp:label id="labATitle" runat="server" Visible="False"></asp:label><asp:GridView ID="DataGridA" runat="server" AutoGenerateColumns="False"  BorderWidth="0px" Width="100%" DataKeyNames="ID" ShowHeader="False" Visible="false">
                   <Columns>
                        <asp:TemplateField>
                                <ItemTemplate>
                                    <table  cellspacing="0" cellpadding="0" width="99%" align="left" border="0" >
							            <tr height="30">
								            <td bgcolor="#f5fcfe">
									            <asp:Label id="labADataTitle" runat="server" Text='<%# Bind("RubricTitle") %>'> </asp:Label>
                                            </td>
							            </tr>
								        <tr>
									        <td>
										         <asp:RadioButtonList  RepeatLayout="Flow" id="RBLAData" runat="server" RepeatDirection="Vertical" ></asp:RadioButtonList>
                                            </td>
								        </tr>
								        <tr>
									        <td>
										        <asp:Label id="labAOKAnswer" runat="server" Visible="False" Text='<%# Bind("OKAnswer") %>'> </asp:Label>
                                                <asp:Label id="labAID" runat="server" Visible="False" Text='<%# Bind("ID") %>'>
													</asp:Label>
									        </td>
								        </tr>
                                        
						            </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                 </asp:GridView>
     </td>
     </tr>
     
     <tr>
						<td>
                            <input id="RndSaveTime" type="hidden" name="RndSaveTime" runat="server" />
							<input id="txtHideComm" type="hidden" size="1" name="txtHideComm" runat="server" />
                            <input id="txtHideFocus" type="hidden" size="1" value="0" name="txtHideFocus" runat="server" />
                            <input id="txtHideEnter" type="hidden" size="1" value="0" name="txtHideEnter" runat="server" />
                            <input id="txtCheckID" type="hidden" size="1" value="-1" name="txtCheckID" runat="server" />
							<input id="txtARubricListID" type="hidden" size="1" name="txtARubricListID" runat="server" />
						</td>
					</tr>
                   
    </table>
    <br /><br /><br /><br /><asp:Button ID="butSave" Width="0" runat="server" ForeColor="#ffffff"  onclick="butSave_Click"  style='POSITION:relative;TOP:30px' />
            </ContentTemplate>
       </asp:UpdatePanel>
    </form>
   <script type="text/javascript" language="javascript">
       var RndM = document.getElementById("RndSaveTime").value;
       function SubSaveTime() {
           RndM = RndM - 1;
           if (RndM <= 0) {
               document.getElementById("txtARubricListID").value = document.getElementById("labRubricListAID").innerHTML;
               document.getElementById("txtHideComm").value = "AutoSaveExam";
               document.getElementById("butSave").click();
               RndM = document.getElementById("RndSaveTime").value;
               window.setTimeout("SubSaveTime()", 60000);
           }
           else {
               window.setTimeout("SubSaveTime()", 60000);
           }
       }
       SubSaveTime();
       function submitit() {
          
           if (confirm("您确定要交卷么？")) {
               document.getElementById("txtHideComm").value = "EndExam";
               Form1.submit();
           }
           else {
               return false;
           }
       }
       function CheckExamPaper() {
           document.getElementById("txtARubricListID").value = document.getElementById("labRubricListAID").innerHTML;
           document.getElementById("txtHideComm").value = "CheckExam";
           Form1.submit();
       }
       function SaveExamPaper() {
           document.getElementById("txtARubricListID").value = document.getElementById("labRubricListAID").innerHTML;
           document.getElementById("txtHideComm").value = "SaveExam";
           document.getElementById("butSave").click();
       }
       function WriteRBL(strRubricType, strRubricID) {
           document.getElementById(strRubricType).innerHTML = document.getElementById(strRubricType).innerHTML.replace('<font color=red>' + strRubricID + '、</font>', strRubricID + '、');
           document.getElementById(strRubricType).innerHTML = document.getElementById(strRubricType).innerHTML.replace('<font color=blue>' + strRubricID + '、</font>', strRubricID + '、');
           if (document.getElementById(strRubricType).innerHTML.indexOf('<font color=green>' + strRubricID + '、</font>') == -1) {
               document.getElementById(strRubricType).innerHTML = document.getElementById(strRubricType).innerHTML.replace(strRubricID + '、', '<font color=green>' + strRubricID + '、</font>');
           }
       }
       function SetTipRubricID(strRubricType, strRubricID) {
           document.getElementById(strRubricType).innerHTML = document.getElementById(strRubricType).innerHTML.replace('<font color=green>' + strRubricID + '、</font>', strRubricID + '、');
           document.getElementById(strRubricType).innerHTML = document.getElementById(strRubricType).innerHTML.replace('<font color=blue>' + strRubricID + '、</font>', strRubricID + '、');
           if (document.getElementById(strRubricType).innerHTML.indexOf('<font color=red>' + strRubricID + '、</font>') == -1) {
               document.getElementById(strRubricType).innerHTML = document.getElementById(strRubricType).innerHTML.replace(strRubricID + '、', '<font color=red>' + strRubricID + '、</font>');
           }
           else {
               document.getElementById(strRubricType).innerHTML = document.getElementById(strRubricType).innerHTML.replace('<font color=red>' + strRubricID + '、</font>', strRubricID + '、');

           }
       }
		</script>
</body>
</html>
